Skip to content

feat(metricsai): default week-ending day to Friday - #42

Merged
bhodges-navapbc merged 1 commit into
mainfrom
change-default-week-ending-friday
Jun 16, 2026
Merged

feat(metricsai): default week-ending day to Friday#42
bhodges-navapbc merged 1 commit into
mainfrom
change-default-week-ending-friday

Conversation

@bhodges-navapbc

Copy link
Copy Markdown
Collaborator

What

Changes the metricsai default week-ending day from Thursday to Friday.

week_ending_date defaults to the most recent occurrence of the configured
week-ending weekday. Flipping the default flips the implied reporting window —
since the window is always "the 7 days ending on that day," the default window
moves from Fri 00:00:00Z-Thu 23:59:59Z to Sat 00:00:00Z-Fri 23:59:59Z.

The day is still overridable via week_ending_day / METRICSAI_WEEK_ENDING_DAY
/ --week-ending-day; only the default changed.

Changes

  • Source defaults (the functional change): DEFAULT_WEEK_ENDING_WEEKDAY
    in models.py and week_ending_day in config.py.
  • Docstrings / CLI help: models.py, context.py, config.py, and the
    --week-ending-day help text in cli.py.
  • Tests: updated the two default-specific cases in tests/test_models.py
    to Friday dates (2026-06-05).
  • Docs: README.md, QUICKSTART.md, docs/usage.md, CLAUDE.md.

Verification

  • uv run pytest — 57 passed.
  • metricsai --module build_pr --dry-runweek_ending_date: 2026-06-12 (Friday).
  • metricsai --week-ending-day thursday --module build_pr --dry-run
    2026-06-11 (override still works).

🤖 Generated with Claude Code

Change the default reporting-week close from Thursday to Friday. The window
is always the 7 days ending on the week-ending day, so the default window
shifts to Sat 00:00:00Z-Fri 23:59:59Z. The day remains overridable via
week_ending_day / METRICSAI_WEEK_ENDING_DAY / --week-ending-day.

Updates the two source defaults plus docstrings, CLI help, the two
default-specific model tests, and all docs (README, QUICKSTART, docs/usage,
CLAUDE.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bhodges-navapbc
bhodges-navapbc merged commit 41d902d into main Jun 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant